import React from 'react'
import ReactDOM from 'react-dom'
import './styles/index.less'
import Root from './pages/root'
// import * as serviceWorker from './serviceWorker'
import { BrowserRouter as Router } from 'react-router-dom'
import { Provider } from 'react-redux'
import Store from './store'
import { ConfigProvider } from 'antd'
import zhCN from 'antd/es/locale/zh_CN'

ReactDOM.render(
  (
    <Provider store={Store}>
      <Router>
        <ConfigProvider locale={zhCN}>
          <Root />
        </ConfigProvider>
      </Router>
    </Provider>
  ),
  document.getElementById('root')
)

// serviceWorker.unregister()
